package com.boot.phoenix;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.transaction.annotation.EnableTransactionManagement;

@MapperScan({"com.boot.phoenix.dao"})//mybatis mapper路径
@SpringBootApplication(scanBasePackages = "com.boot.phoenix")  //主函数扫描包
@EnableTransactionManagement //开启事务
public class Application {
    public static void main(String[] args) {
        System.setProperty("hadoop.home.dir", "/root/apps/hadoop-home/hadoop");
        SpringApplication.run(Application.class, args);
    }
}
